package com.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.controller.util.Data;
import com.example.domain.Admin;
import com.example.domain.Community;
import com.example.domain.User;

public interface AdminService extends IService<Admin> {
    boolean saveAdmin(Admin admin);

    //    新增查询用户用的
     Admin getAdmin(String name);

    Data login(Admin admin);

    boolean agency();

    IPage<Admin> getPageAdmin(Integer page, Integer size);
}
